import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    isFullScreen: false
  },
  mutations: {
    // 改变全屏状态
    switchFullScreen(state, payload) {
      state.isFullScreen = payload
    }
  },
  getters: {
    // 获取全屏状态计算属性
    getFullScreenChange(state) {
      return state.isFullScreen
    }
  },
  actions: {},
  modules: {}
})
